package com.zhentao.schedule.apis.article.fallback;



import com.zhentao.schedule.apis.article.ArticleClientApi;
import com.zhentao.schedule.file.article.dto.ArticleDto;
import com.zhentao.schedule.model.common.dtos.ResponseResult;
import com.zhentao.schedule.model.common.enums.AppHttpCodeEnum;
import org.springframework.stereotype.Component;

/**
 * @Date 2024/3/2 16:34
 * @Author xdm
 **/
//feign请求失败的配置
@Component
public class ArticleClientApiFallback implements ArticleClientApi {

    @Override
    public ResponseResult saveArticle(ArticleDto dto) {
        return ResponseResult.errorResult(AppHttpCodeEnum.SERVER_ERROR,"获取数据失败");
    }

}
